public class _______
{
    location lastMove;
 
    public void onMouseClick(Location point)
    {
        lastMouse = point;
    }
 
    publlic void onMouseDrag(Location point)
    {
        int xChange = point.getX() - lastMouse.getX();
        move.head(xChange, yChange);
        lastMouse point;
    }
}
Drag

1. Keep track of last mouse location
2. Compare that to current location
3. Subtract Current x-last x for changing in x samce for y's
4. Move each object change x and y
5. update last mouse